import 'dart:ui';
import 'package:flutter/material.dart';

class AuroraBackground extends StatelessWidget {
  const AuroraBackground({super.key});

  @override
  Widget build(BuildContext context) {
    final cs = Theme.of(context).colorScheme;
    return IgnorePointer(
      child: Stack(
        children: [
          Positioned(
            top: -80,
            left: -60,
            child: _blurBlob(cs.primary.withOpacity(0.25), 220),
          ),
          Positioned(
            bottom: -100,
            right: -80,
            child: _blurBlob(cs.secondary.withOpacity(0.22), 260),
          ),
          Positioned(
            top: 160,
            right: -40,
            child: _blurBlob(Colors.pinkAccent.withOpacity(0.18), 180),
          ),
        ],
      ),
    );
  }

  Widget _blurBlob(Color color, double size) {
    return ImageFiltered(
      imageFilter: ImageFilter.blur(sigmaX: 80, sigmaY: 80),
      child: Container(
        width: size,
        height: size,
        decoration: BoxDecoration(color: color, shape: BoxShape.circle),
      ),
    );
  }
}
